﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using SkinnedModel;


namespace ObjectLibrary
{
    public class BearFighter : Fighter
    {
        public BearFighter(ContentManager content, string strName)
        {
            _model = new MySkinning3DModel(content, strName, 0.8f, Vector3.Zero,0);
            //_model.TransformMatrix = Matrix.CreateScale(0.2f);

            _skinningData = _model.Model.Tag as SkinningData;

            if (_skinningData == null)
                throw new InvalidOperationException
                    ("This model does not contain a SkinningData tag.");

            // Create an animation player, and start decoding an animation clip.
            _animationPlayer = new AnimationPlayer(_skinningData);


            _speed = 0.15f;
            //Scale = 0.8f;

            Init();

            // Bounding Sphere
            //createCollisionXML("Content/" + strName + "Collision.xml");
            skinnedSpheres = content.Load<SkinnedSphere[]>(strName + "Collision");
            boundingSpheres = new BoundingSphere[skinnedSpheres.Length];
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

    }
}
